<?php

// Add RSS links to <head> section
automatic_feed_links();

// Load jQuery
if (!is_admin()) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"), false);
    wp_enqueue_script('jquery');
}

// Clean up the <head>
function removeHeadLinks() {
    remove_action('wp_head', 'rsd_link');
    remove_action('wp_head', 'wlwmanifest_link');
}

add_action('init', 'removeHeadLinks');
remove_action('wp_head', 'wp_generator');

if (function_exists('register_sidebar'))
    register_sidebar(array(
    	'name' => 'Lateral Izquierdo',
 		'id'   => 'sidebar-widgets',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
    ));
// Home widgets
register_sidebar(array(
    	'name' => 'Home Widget 1',
 		'id'   => 'home-widget-1',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
register_sidebar(array(
    	'name' => 'Home Widget 2',
 		'id'   => 'home-widget-2',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
register_sidebar(array(
    	'name' => 'Home Widget 3',
 		'id'   => 'home-widget-3',
 		'before_widget' => '<div class="widget last-widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
// Footer widgets
register_sidebar(array(
    	'name' => 'Footer Widget 1',
 		'id'   => 'footer-widget-1',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
register_sidebar(array(
    	'name' => 'Footer Widget 2',
 		'id'   => 'footer-widget-2',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
register_sidebar(array(
    	'name' => 'Footer Widget 3',
 		'id'   => 'footer-widget-3',
 		'before_widget' => '<div class="widget %2$s">',
 		'after_widget'  => '</div>',
 		'before_title'  => '<h2>',
 		'after_title'   => '</h2>'
));
?>